package com.item.model.entity.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhang-rongyao
 * @version V1.0
 * @Package com.item.model.entity
 * @date 2021/7/28 13:46
 */
@Data
public class WxOrderVo implements Serializable {

    private static final long serialVersionUID = 8738087936984323163L;

    @ExcelProperty(index = 0, value = "订单号")
    @ColumnWidth(35)
    private String orderNo;

    @ExcelProperty(index = 1, value = "购买人openid")
    @ColumnWidth(35)
    private String openId;

    @ExcelProperty(index = 2, value = "实付金额")
    @ColumnWidth(35)
    private Integer realpayAmount;


    //@ExcelIgnore

    @ExcelProperty(index = 3, value = "付款时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;

    @ExcelProperty(index = 4, value = "订单金额")
    @ColumnWidth(15)
    private Integer facePrice;

    @ExcelProperty(index = 5, value = "卡号")
    @ColumnWidth(15)
    private String cardId;


}
